Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Add cancel context to NewGRPCClient (#720) #753

Merged
merged 1 commit into from
Dec 16, 2024

Conversation

konveyor-ci-bot[bot]
Copy link

PR Summary

Bug fix to address the issue of java-external-provider.exe not ending
after analysis completion.
Introduces a cancel context to the NewGRPCClient to ensure proper
termination of the gRPC client.

  • provider/grpc/provider.go: Added context.WithCancel to manage the
    lifecycle of the gRPC client and ensure it can be properly stopped.
  • provider/grpc/provider.go: Updated grpcProvider struct to include
    cancelCmd and invoked cancelCmd() in the Stop method to terminate the
    context.

Signed-off-by: kthatipally [email protected]
Signed-off-by: Cherry Picker [email protected]

### PR Summary
Bug fix to address the issue of java-external-provider.exe not ending
after analysis completion.
Introduces a cancel context to the NewGRPCClient to ensure proper
termination of the gRPC client.

- provider/grpc/provider.go: Added context.WithCancel to manage the
lifecycle of the gRPC client and ensure it can be properly stopped.
- provider/grpc/provider.go: Updated grpcProvider struct to include
cancelCmd and invoked cancelCmd() in the Stop method to terminate the
context.

Signed-off-by: kthatipally <[email protected]>
Signed-off-by: Cherry Picker <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants